<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use backend\helpers\ActionButton;

/* @var $this yii\web\View */
/* @var $model backend\models\TicketSales */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Ticket Sales', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="container ticket-sales-view">

    <h1 class="main-title"><?= Html::encode($this->title) ?></h1>

    <p>
        <?= ActionButton::update($model->id, 'updateTicketSales') ?>
        <?= ActionButton::delete($model->id, 'Вы точно хотите удалить продажу билета?', 'deleteTicketSales') ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'options' => ['class' => 'table table-striped detail-view'],
        'attributes' => [
            'id',
            'event_id',
            'date_sale',
            'is_cancell',
            'is_refund',
            'tariff',
            'selling_platform',
            'payment_method',
        ],
    ]) ?>

</div>
